/* 营销-陈列模版
 */

import { postRequest, getRequest } from '@/lib/axios'

export const displayApi = {
  // 陈列模板列表
  templateList: (param) => {
    return getRequest('/display/template_list', param)
  },
  // 陈列模板详情
  templateDetail: (param) => {
    return getRequest('/display/template_detail', param)
  },
  // 新增陈列模板
  templateAdd: (param) => {
    return postRequest('/display/template_add', param)
  },
  // 编辑陈列模板
  templateEdit: (param) => {
    return postRequest('/display/template_edit', param)
  },
  // 修改陈列模板
  templateModify: (param) => {
    return postRequest('/display/template_modify', param)
  },
  // 删除陈列模板
  templateDel: (param) => {
    return postRequest('/display/template_del', param)
  },

  //

  // 陈列协议列表
  agreementList: (param) => {
    return getRequest('/display/agreement_list', param)
  },
  // 新增陈列协议
  agreementAdd: (param) => {
    return postRequest('/display/agreement_add', param)
  },
  // 编辑陈列协议
  agreementEdit: (param) => {
    return postRequest('/display/agreement_edit', param)
  },
  // 陈列协议详情
  agreementDetail: (param) => {
    return getRequest('/display/agreement_detail', param)
  },
  // 修改陈列协议
  agreementModify: (param) => {
    return postRequest('/display/agreement_modify', param)
  },
  // 删除陈列协议
  agreementDel: (param) => {
    return postRequest('/display/agreement_del', param)
  },
  // 陈列协议周期数据详情--核算
  agreementCycleDetail: (param) => {
    return getRequest('/display/agreement_cycle_detail', param)
  },
  // 协议核算提交
  agreementExchange: (param) => {
    return postRequest('/display/agreement_exchange', param)
  },
  // 核验驳回
  agreementReject: (id) => {
    return postRequest(`/display/reject?id=${id}`);
  },
  //
  // 陈列协议列表明细
  agreementDetailsList: (param) => {
    return getRequest('/display/agreement_details_list', param)
  }
}
